#ifndef __f_STRING_H__
#define __f_STRING_H__

#include <e32std.h>
#include <e32base.h>

// CharConvert
#include "charconv.h"
class fTextConverter
{
public:
    enum TCharSet
    {
        f_ASCII = KCharacterSetIdentifierAscii, f_ANSI = KCharacterSetIdentifierGbk, f_UTF8 = KCharacterSetIdentifierUtf8
    };
public:
    static HBufC16* ConvertToUnicode( const TDesC8& aBuffer, TCharSet aCharSet );
    static HBufC8* ConvertFromUnicode( const TDesC16& aBuffer, TCharSet aCharSet );
    static HBufC16* ConvertToUnicode( char* szString, int nLength, TCharSet aCharSet );
};

#endif // __f_STRING_H__
